import { createApp } from 'vue'
import App from './App.vue'
import '@/styles/index.less'
import pinia from '@/stores'
import router from '@/router'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import './mock/practiceServer'

import 'element-plus/theme-chalk/el-message.css';
import ResourcesList from "@/components/ResourcesList/index.vue";
createApp(App).component("ResourcesList", ResourcesList);

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(pinia).use(router).use(ElementPlus, { locale: zhCn }).mount('#app')
